package com.project.yunshitong.bean;

public class GoodsInfo {
    private String code;//资产编码
    private String status;//状态0未盘 1已盘 2不在盘点单的盘盈 3在盘点单的盘盈 4待确认
    private String bomid;//
    private String deptid;//部门id
    private String department;//部门名称
    private String oldDeptid;//部门id
    private String oldDepartment;//部门名称
    private String user;//使用人
    private String model;//型号
    private String name;//资产名称
    private String no;//
    private String address;//摆放位置
    private String unit;//单位
    private String inDepart;//盘部门
    private String fixedNumber;//epc

    public GoodsInfo() {
    }

    public GoodsInfo(String code, String status, String bomid, String deptid, String user, String department, String model,
                     String name, String no, String address, String unit, String inDepart,String oldDeptid, String oldDepartment) {
        this.code = code.trim();
        this.status = status.trim();
        this.bomid = bomid.trim();
        this.deptid = deptid.trim();
        this.oldDeptid = oldDeptid.trim();
        this.user = user.trim();
        this.department = department.trim();
        this.oldDepartment = oldDepartment.trim();
        this.model = model.trim();
        this.name = name.trim();
        this.no = no.trim();
        this.address = address.trim();
        this.unit = unit.trim();
        this.inDepart = inDepart.trim();
    }

    public String getOldDeptid() {
        return oldDeptid;
    }

    public void setOldDeptid(String oldDeptid) {
        this.oldDeptid = oldDeptid;
    }

    public String getOldDepartment() {
//        if(oldDepartment.contains("）")){
//            oldDepartment.replace("）",")");
//        }
        return oldDepartment;
    }

    public void setOldDepartment(String oldDepartment) {
        this.oldDepartment = oldDepartment;
    }

    public String getFixedNumber() {
        return fixedNumber == null ? "" : fixedNumber;
    }

    public void setFixedNumber(String fixedNumber) {
        this.fixedNumber = fixedNumber == null ? "" : fixedNumber;
    }

    public String getCode() {
        return code.trim() == null ? "" : code;
    }

    public void setCode(String code) {
        this.code = code == null ? "" : code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBomid() {
        return bomid == null ? "" : bomid;
    }

    public void setBomid(String bomid) {
        this.bomid = bomid == null ? "" : bomid;
    }

    public String getDeptid() {
        return deptid == null ? "" : deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid == null ? "" : deptid;
    }

    public String getUser() {
        return user == null ? "" : user;
    }

    public void setUser(String user) {
        this.user = user == null ? "" : user;
    }

    public String getDepartment() {
        return department == null ? "" : department;
    }

    public void setDepartment(String department) {
        this.department = department == null ? "" : department;
        if(department.contains("）")){
            department.replace("）",")");
        }
    }

    public String getModel() {
        return model == null ? "" : model;
    }

    public void setModel(String model) {
        this.model = model == null ? "" : model;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name == null ? "" : name;
    }

    public String getNo() {
        return no == null ? "" : no;
    }

    public void setNo(String no) {
        this.no = no == null ? "" : no;
    }

    public String getAddress() {
        return address == null ? "" : address;
    }

    public void setAddress(String address) {
        this.address = address == null ? "" : address;
    }

    public String getUnit() {
        return unit == null ? "" : unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? "" : unit;
    }

    public String getInDepart() {
        return inDepart == null ? "" : inDepart;
    }

    public void setInDepart(String inDepart) {
        this.inDepart = inDepart == null ? "" : inDepart;
    }

    @Override
    public String toString() {
        return "GoodsInfo{" +
                "code='" + code + '\'' +
                ", status='" + status + '\'' +
                ", bomid='" + bomid + '\'' +
                ", deptid='" + deptid + '\'' +
                ", department='" + department + '\'' +
                ", oldDeptid='" + oldDeptid + '\'' +
                ", oldDepartment='" + oldDepartment + '\'' +
                ", user='" + user + '\'' +
                ", model='" + model + '\'' +
                ", name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", address='" + address + '\'' +
                ", unit='" + unit + '\'' +
                ", inDepart='" + inDepart + '\'' +
                ", fixedNumber='" + fixedNumber + '\'' +
                '}';
    }
}
